package com.Algorithm.Study.map;

import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/26/8:44
 * @Description:
 * @Target:
 */
public class Node {
    public int value; // 值
    public int in;  // 入度(可以认为是Node定位,编号依据)-->别人来你这
    public int out; // 出度(可以认为是Node定位,编号依据)-->你去别人那
    public ArrayList<Node> nexts; // 出度的集合,没有就null
    public ArrayList<Edge> edges; // 边的集合,没有就null

    public Node(int value) {
        this.value = value;
        in = 0;
        out = 0;
        nexts = new ArrayList<>();
        edges = new ArrayList<>();
    }
}
